let obj = {
  "common": {
    "ID": 46957,
    "SerialNumber": "C2063-LEAS-NCSA-00041872",
    "Title": "鲁娟 - 非合同用印申请",
  },
  "worklists": [],
  "destinationUsers": [
    {
      "ID": 6071616,
      "FormInstanceID": 46957,
      "ProcessListID": 20287,
      "Roles": [{
        "ID": 1,
        "Name": "MDC",
        "Extra": [{
          "Name": "其他",
          "Items": [1, 3, 5]
        }]
      }]
    },
    {
      "ID": 6071617,
      "FormInstanceID": 46957,
      "ProcessListID": 20287
    },
    {
      "ID": 6071618,
      "FormInstanceID": 46957,
      "ProcessListID": 20287
    },
    {
      "ID": 6071619,
      "FormInstanceID": 46957,
      "ProcessListID": 20287
    }
  ],
  "logs": [
    {
      "ID": 70342,
      "ProcessID": 20287,
      "BizFormID": 46957,
      "ApproverID": "dc\\LuJuan1"
    }
  ]
};

function resolverObject (data, prefix) {
  let rs = [];

  if (!data) {
    return rs;
  }

  let props = Object.getOwnPropertyNames(data);

  props.forEach(function (p) {
    let item = data[p];
    let pref = prefix ? prefix + '.' : '';

    if (Array.isArray(item)) {
      item.forEach(function (a, index) {
        if (typeof a != 'object') {
          rs.push({
            name: `${pref}${p}[${index}]`,
            value: a
          });
        } else {
          let rsc = resolverObject(a, `${pref}${p}[${index}]`);

          if (rsc.length > 0) {
            rs.push(...rsc);
          } else {
            return [];
          }
        }
      });
    } else if (typeof item == 'object') {
      let rsc = resolverObject(item, pref + p);

      if (rsc.length > 0) {
        rs.push(...rsc);
      } else {
        return [];
      }
    } else {
      rs.push({
        name: pref + p,
        value: item
      });
    }
  });

  return rs;
}

function generateForm (obj) {
  let rs = resolverObject(obj);

  for (let item of rs) {
    console.log(`<input type="hidden" name="${item.name}" value="${item.value}" />`);
  }
}

generateForm(obj);